package com.kangye.game.dao;

import com.kangye.game.pojo.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    List<TUser> findAllList(int num, int size);

    int findCount();

    int addUser(TUser user);

    TUser findOne(int id);

    int updUser(TUser user);

    void delUser(int id);

    List<TUser> findLike(@Param("username") String username);

}
